<?php
/**
 * 活动获奖者（游戏）
 * @author Administrator
 *
 */
namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class ActWinners extends Model
{
    protected $table = 'act_winners';

    protected function getDateFormat()
    {
        return 'U';
    }

    public function user()
    {
        return $this->hasOne('App\Models\User', 'uid', 'uid');
    }

    public function act()
    {
        return $this->belongsTo('App\Models\Act', 'act_id', 'id');
    }

    public function prizeArray()
    {
        return $this->belongsTo('App\Models\ActPrizeArray', 'prize_arr_id', 'id');
    }

}
